package com.adprof.demo.natives;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import com.adprof.demo.android.R;
import com.adprof.demo.natives.listview.NativeListviewDemoActivity;
import com.adprof.demo.natives.recyclerview.NativeRecyclerviewDemoActivity;


public class NativeAdDemoActivity extends AppCompatActivity {

    private Button nativeSimpleBtn;
    private Button nativeAdListBtn;
    private Button nativeAdRecycleBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.demo_activity_native);

        nativeSimpleBtn = findViewById(R.id.native_ad_simple_button);
        nativeAdListBtn = findViewById(R.id.native_ad_list_button);
        nativeAdRecycleBtn = findViewById(R.id.native_ad_recycle_button);

        nativeSimpleBtn.setOnClickListener(v -> {
            Intent intent = new Intent(NativeAdDemoActivity.this, NativeAdSimpleDemoActivity.class);
            startActivity(intent);
        });

        nativeAdListBtn.setOnClickListener(v -> {
            Intent intent = new Intent(NativeAdDemoActivity.this, NativeListviewDemoActivity.class);
            startActivity(intent);
        });

        nativeAdRecycleBtn.setOnClickListener(v -> {
            Intent intent = new Intent(NativeAdDemoActivity.this, NativeRecyclerviewDemoActivity.class);
            startActivity(intent);
        });

    }

}